<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
String path2 = request.getContextPath();
String basePath2 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path2+"/";
	
	
	String	role,name="已登录";
	String	login = "";
	if(request.getSession().getAttribute("login") != null){
		login = (String)request.getSession().getAttribute("login");
		if(login.equals("yes")){//登陆了
		String	right = (String)request.getSession().getAttribute("right");
		if(right.equals("user")){
			name = "已登录，欢迎用户：" + (String)request.getSession().getAttribute("name");
		}else if(right.equals("manager")){
			name = "已登录，欢迎管理员：" + (String)request.getSession().getAttribute("name");
		}else {
			name = "已登录，欢迎超级管理员：" + (String)request.getSession().getAttribute("name");
		}
	}
	}
%>

<link href="/projectMonitor/head/Stylesheets/style_new.css" rel="stylesheet" type="text/css">


<body>
<table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
 <tbody>
  <tr>
   <td align="right">
    <table width="50%" border="0" cellspacing="0" cellpadding="0" class="table">
     <tbody>
      <tr>
       <td align="right">
       <a href="#" onclick="" style="">【设为首页】</a>
       <a href="#">【收藏本站】</a>
       </td>
      </tr>
     </tbody>
    </table>
   </td>
  </tr>

  <tr>
    <td background="/projectMonitor/head/Images/head.png">
    <img width="966" height="77" src="/projectMonitor/head/Images/head2.png" alt="logo">
    </td>
  </tr>
  <tr>
    <td height="6" align="center"></td>
  </tr>
  <tr>
    <td height="31" align="center" background="/projectMonitor/head/Images/bg_button.gif"><table width="80%" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td align="center"><a href="/projectMonitor/system/start.action" target="_top" class="p14"><b>首　　页</b></a></td>
        <td align="center"><img src="Images/line_button.gif" width="2" height="13"></td>

        <s:if test="#session.right == 'super' ">
        	<td align="center"><a href="/projectMonitor/system/admin.action" target="_blank" class="p14"><b>管理系统(super)</b></a></td>
			<td align="center"><img src="/projectMonitor/head/Images/line_button.gif" width="2" height="13"></td>
        </s:if>
        
		<s:if test="#session.right == 'user' ">
        	<td align="center"><a href="/projectMonitor/system/user.action" target="_blank" class="p14"><b>项目管理(user)</b></a></td>
			<td align="center"><img src="/projectMonitor/head/Images/line_button.gif" width="2" height="13"></td>
        </s:if>
		<s:if test="#session.right == 'manager' ">
        	<td align="center"><a href="/projectMonitor/system/manager.action" target="_blank" class="p14"><b>管理系统(manager)</b></a></td>
			<td align="center"><img src="/projectMonitor/head/Images/line_button.gif" width="2" height="13"></td>
        </s:if>

        <s:if test="#session.login == 'yes'">
        	<td align="center" color="blue"><strong><%=name %></strong></td>
        	<td align="center" color="blue"><a href="/projectMonitor/system/logout.action" target="_top" class="p15"><b>退　　出</b></a></td>
        </s:if>
        <s:else>

        </s:else>
      </tr>
    </tbody></table></td>
  </tr>
</tbody></table>
